package cc.higou.service;

import java.util.Date;

import cc.higou.service.TestTbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cc.higou.core.dao.TestTbMapper;
import cc.higou.core.pojo.TestTb;

/**
 * 测试用户的service层
 * 
 * @author Lenovo
 *
 */
@Service("testTbService")
@Transactional
public class TestTbServiceImpl implements TestTbService {
	
	@Autowired
	private TestTbMapper tbMapper;


	// 测试添加用户的方法
	@Override
	public void add(TestTb testTb) {
		tbMapper.add(testTb);
		TestTb testTb2 = new TestTb();
		testTb2.setName("EZ");
		testTb2.setBirthday(new Date());
		tbMapper.add(testTb2);
	}

}
